package org.tlipoca.smarticlefavorites.client;

import org.genntii.smcommon.result.Result;
import org.genntii.smdomain.entity.Article;
import org.genntii.smdomain.vo.ArticleVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;

@FeignClient("sm-article")
public interface ArticleClient {

    // TODO. 方法未实现
    @GetMapping("/article/list")
    Result<ArrayList<ArticleVO>> getArticleListByIds(@RequestParam("articleIds") ArrayList<Long> articleIds);

    @GetMapping("/article/exists")
    Result<Boolean> getArticleExists(@RequestParam("articleId") Long articleId);
}
